﻿<%@ Page Title="" Language="C#" MasterPageFile="~/front.Master" AutoEventWireup="true"
    CodeBehind="listaReparoConserto.aspx.cs" Inherits="Imobitech.Imovel.listaReparoConserto" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolderHeader" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolderContent" runat="server">
    <a id="A1" runat="server">Cadastro Reparos</a> <br />
    <a id="A2" runat="server">Cadastro Consertos</a> <br />

    <asp:GridView ID="gdvSrvicos" runat="server" AutoGenerateColumns="False" BackColor="#f2f2f2"
        BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px" CellPadding="3" DataKeyNames="Id"
        ForeColor="Black" GridLines="Vertical" OnRowCommand="gdvSrvicos_RowCommand" OnRowDataBound="gdvSrvicos_RowDataBound">
        <FooterStyle BackColor="#CCCCCC" />
        <Columns>
            <asp:BoundField DataField="id" HeaderText="Cód" ReadOnly="True" SortExpression="Id"
                InsertVisible="False" HeaderStyle-Width="10px" Visible="false" />
            <asp:BoundField DataField="dependencia" HeaderText="Dependência" HeaderStyle-Width="200px"
                SortExpression="Nome" ItemStyle-HorizontalAlign="Left" ItemStyle-CssClass="nometabela">
                <HeaderStyle Width="350px"></HeaderStyle>
                <ItemStyle HorizontalAlign="Left" CssClass="nometabela"></ItemStyle>
            </asp:BoundField>
            <asp:BoundField DataField="tipo" HeaderText="Tipo de serviço" HeaderStyle-Width="200px"
                SortExpression="Nome" ItemStyle-HorizontalAlign="Left" ItemStyle-CssClass="nometabela">
                <HeaderStyle Width="350px"></HeaderStyle>
                <ItemStyle HorizontalAlign="Left" CssClass="nometabela"></ItemStyle>
            </asp:BoundField>
            <asp:BoundField DataField="aprovado" HeaderText="" ReadOnly="True" SortExpression="Id"
                HeaderStyle-Width="0px" />
            
            <asp:TemplateField HeaderText="Aprovado">
                    <itemtemplate>
                    <asp:Image ID="imageAprovado" runat="server"></asp:Image>
                </itemtemplate>
                </asp:TemplateField>
            <asp:BoundField DataField="realizado" HeaderText="" ReadOnly="True" SortExpression="Id"
                HeaderStyle-Width="0px" />
            <asp:TemplateField HeaderText="Realizado">
                <ItemTemplate>
                    <asp:HiddenField ID="teste" runat="server" />
                    <asp:Image ID="imageRealizado" runat="server"></asp:Image>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:ButtonField ButtonType="Button" CommandName="Realizado" Text="Feito" />
        </Columns>
        <PagerStyle BackColor="#3b5985" ForeColor="white" HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="#9dacc2" ForeColor="White" />
        <HeaderStyle BackColor="#3b5985" Font-Bold="True" ForeColor="White" />
        <AlternatingRowStyle BackColor="#e5e5e5" />
    </asp:GridView>
</asp:Content>
